<?php

/**
 * Description of Resource
 *
 * @author     Mon Zafra <monzee at gmail>
 * @copyright  (c)2009 Mon Zafra
 * @category   Mz
 * @package
 * @license    http://mz-project.googlecode.com/svn/trunk/LICENSE   MIT License
 * @version    SVN: $Id: Resource.php 53 2009-12-06 23:47:39Z monzee@gmail.com $
 */
class Acl_Form_Resource extends Zend_Form
{
    public function init()
    {
        $decorators = array(
            'Label',
            array('ViewHelper', array('placement' => 'prepend')),
            array('Errors', array('placement' => 'prepend')),
        );

        $this->addElement('text', 'resource_id', array(
            'decorators' => $decorators,
            'label' => 'Resource ID',
            'required' => true,
            'class' => 'huge-font',
        ));

        $this->addElement('text', 'resource_desc', array(
            'decorators' => $decorators,
            'label' => 'Resource description',
            'class' => 'huge-font',
        ));

        $this->addElement('select', 'resource_parent', array(
            'decorators' => $decorators,
            'label' => 'Set resource parent',
            'multiOptions' => array('none' => 'none'),
            'class' => 'huge-font',
        ));

        $this->addElement('submit', 'submit', array(
            'decorators' => $decorators,
            'label' => 'Save',
            'ignore' => true,
            'class' => 'huge-font',
        ));
    }

}